﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Shlook.Common
{
    [ServiceContract]
    public interface IChatClient
    {
        [OperationContract(IsOneWay = true)]
        void NewMessage(User from, string message);

        [OperationContract(IsOneWay = true)]
        void UserStatusChanged(User user);

        [OperationContract(IsOneWay = true)]
        void UserConnected(User user);

        [OperationContract(IsOneWay = true)]
        void UserDisconnected(string userId);

        [OperationContract(IsOneWay = true)]
        void KeepAlive();
    }
}
